@include("system::admin.layouts._header")
<body>
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form" method="post">

        <div class="layui-form-item">
            <label class="layui-form-label required">API-KEY</label>
            <div class="layui-input-block">
                <input type="text" name="bing_api_key" class="layui-input" lay-verify="required" lay-reqtext="请输入API-KEY" placeholder="请输入API-KEY" value="{{$systemConfig['bing_api_key'] ?? ''}}">
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">推送模式</label>
            <div class="layui-input-block">
                <input type="radio" name="by_push_type" lay-skin="primary" @if(!isset($systemConfig['by_push_type']) || $systemConfig['by_push_type'] == 1) checked @endif value="1" title="实时推送">
                <input type="radio" name="by_push_type" lay-skin="primary" @if(isset($systemConfig['by_push_type']) && $systemConfig['by_push_type'] == 2) checked @endif value="2" title="批量推送">

                <input type="radio" name="by_push_type" lay-skin="primary" @if(isset($systemConfig['by_push_type']) && $systemConfig['by_push_type'] == 3) checked @endif value="3" title="关闭推送">
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">批量推送数量</label>
            <div class="layui-input-block">
                <input type="text" name="by_push_total" class="layui-input" placeholder="请输入批量推送数量" value="{{$systemConfig['by_push_total'] ?? 100}}">
                <tip>该参数仅对批量推送模式有效</tip>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">批量推送地址</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" readonly value="{{route('addon.bing_submit_url.crontab')}}">
                <tip>建议加入定时任务在凌晨执行</tip>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
</body>
</html>
